package com.sdonkey.score.service;

import com.alibaba.fastjson.JSONObject;
import com.sdonkey.score.bean.AddAdPlaceLimit;
import com.sdonkey.score.exception.BusinessException;
import com.sdonkey.score.model.AdPlaceLimitBean;
import com.sdonkey.score.model.AdPlacementLimitListBean;
import com.sdonkey.score.model.FinishPlacementAdBean;

import java.util.List;

public interface AdPlaceLimitService {

    /**
     * 根据广告主 id 查询已投放广告
     * @param advId
     * @return
     * @throws BusinessException
     */
    public List<FinishPlacementAdBean> getUnLimitAdList(String advId);

    public AdPlaceLimitBean getAdPlacnLimitById(int adId);

    /**
     * 新增或者修改
     * @param addAdPlaceLimit
     * @return
     */
    public int setPlaceLimit(AddAdPlaceLimit addAdPlaceLimit);

    public List<AdPlacementLimitListBean> getAdPlaceLimitList(String advId);

    public void deleteAdPlaceLimit(int id);
}
